﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 课程分页
    /// </summary>
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.coursePage", MemberName = null)]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class coursePage
    {
        /// <summary>
        /// 课程标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 1)]
        public int CourseId;
        /// <summary>
        /// 排序标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 2)]
        public byte SortId;
        /// <summary>
        /// 分页类型
        /// </summary>
        public enum pageType : byte
        {
            /// <summary>
            /// 文本
            /// </summary>
            Text,
            /// <summary>
            /// 在线测试
            /// </summary>
            OnlineJudge,
        }
        /// <summary>
        /// 分页类型
        /// </summary>
        public pageType Type;
        /// <summary>
        /// 问题标识
        /// </summary>
        public int ProblemId;
        /// <summary>
        /// 起始测试编号
        /// </summary>
        public int StartTestId;
        /// <summary>
        /// 结束测试编号
        /// </summary>
        public int EndTestId;

        /// <summary>
        /// 课程分页提示
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, MaxStringLength = 64 << 10)]
        public string Prompt = string.Empty;
        /// <summary>
        /// 课程分页描述
        /// </summary>
        [fastCSharp.emit.dataMember(Group = 1, MaxStringLength = 256 << 10)]
        public string Content = string.Empty;

        /// <summary>
        /// 分页数量编号
        /// </summary>
        [fastCSharp.emit.dataMember(IsIgnoreCurrent = true)]
        public byte PageId;
        /// <summary>
        /// 用户锁定状态
        /// </summary>
        [fastCSharp.emit.dataMember(IsIgnoreCurrent = true)]
        public bool IsLock;
        /// <summary>
        /// 是否当前分页
        /// </summary>
        [fastCSharp.emit.dataMember(IsIgnoreCurrent = true)]
        public bool IsCurrent;
    }
}
